testsuite: Avoid negative scales with gl renderer
authorMatthias Clasen <mclasen@redhat.com>
Fri, 16 Jul 2021 11:11:20 +0000 (07:11 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 16 Jul 2021 11:11:20 +0000 (07:11 -0400)
The fix in 1c90bb522e7e722b was only for the ngl renderer,
so don't use the test with the gl renderer, until it is
fixed as well.

testsuite/gsk/compare/scale-textures-negative-ngl.node [new file with mode: 0644]
testsuite/gsk/compare/scale-textures-negative-ngl.png [new file with mode: 0644]
testsuite/gsk/compare/scale-textures-negative.node [deleted file]
testsuite/gsk/compare/scale-textures-negative.png [deleted file]
testsuite/gsk/meson.build

diff --git a/testsuite/gsk/compare/scale-textures-negative-ngl.node b/testsuite/gsk/compare/scale-textures-negative-ngl.node
new file mode 100644 (file)
index 0000000..fbf1d82
--- /dev/null
@@ -0,0 +1,48 @@
+transform {
+  transform: scale(1, 1);
+  child: opacity {
+    opacity: 0.6;
+    child: container {
+      texture {
+        bounds: 0 0 50 50;
+        texture: url("data:,<svg width='50' height='50'><rect x='25' y='25' width='25' height='25' fill='red'/></svg>");
+      }
+    }
+  }
+}
+transform {
+  transform: scale(1, -1);
+  child: opacity {
+    opacity: 0.6;
+    child: container {
+      texture {
+        bounds: 0 0 50 50;
+        texture: url("data:,<svg width='50' height='50'><rect x='25' y='25' width='25' height='25' fill='lime'/></svg>");
+      }
+    }
+  }
+}
+transform {
+  transform: scale(-1, -1);
+  child: opacity {
+    opacity: 0.6;
+    child: container {
+      texture {
+        bounds: 0 0 50 50;
+        texture: url("data:,<svg width='50' height='50'><rect x='25' y='25' width='25' height='25' fill='blue'/></svg>");
+      }
+    }
+  }
+}
+transform {
+  transform: scale(-1, 1);
+  child: opacity {
+    opacity: 0.6;
+    child: container {
+      texture {
+        bounds: 0 0 50 50;
+        texture: url("data:,<svg width='50' height='50'><rect x='25' y='25' width='25' height='25' fill='yellow'/></svg>");
+      }
+    }
+  }
+}
diff --git a/testsuite/gsk/compare/scale-textures-negative-ngl.png b/testsuite/gsk/compare/scale-textures-negative-ngl.png
new file mode 100644 (file)
index 0000000..8624e6c
Binary files /dev/null and b/testsuite/gsk/compare/scale-textures-negative-ngl.png differ
diff --git a/testsuite/gsk/compare/scale-textures-negative.node b/testsuite/gsk/compare/scale-textures-negative.node
deleted file mode 100644 (file)
index fbf1d82..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-transform {
-  transform: scale(1, 1);
-  child: opacity {
-    opacity: 0.6;
-    child: container {
-      texture {
-        bounds: 0 0 50 50;
-        texture: url("data:,<svg width='50' height='50'><rect x='25' y='25' width='25' height='25' fill='red'/></svg>");
-      }
-    }
-  }
-}
-transform {
-  transform: scale(1, -1);
-  child: opacity {
-    opacity: 0.6;
-    child: container {
-      texture {
-        bounds: 0 0 50 50;
-        texture: url("data:,<svg width='50' height='50'><rect x='25' y='25' width='25' height='25' fill='lime'/></svg>");
-      }
-    }
-  }
-}
-transform {
-  transform: scale(-1, -1);
-  child: opacity {
-    opacity: 0.6;
-    child: container {
-      texture {
-        bounds: 0 0 50 50;
-        texture: url("data:,<svg width='50' height='50'><rect x='25' y='25' width='25' height='25' fill='blue'/></svg>");
-      }
-    }
-  }
-}
-transform {
-  transform: scale(-1, 1);
-  child: opacity {
-    opacity: 0.6;
-    child: container {
-      texture {
-        bounds: 0 0 50 50;
-        texture: url("data:,<svg width='50' height='50'><rect x='25' y='25' width='25' height='25' fill='yellow'/></svg>");
-      }
-    }
-  }
-}
diff --git a/testsuite/gsk/compare/scale-textures-negative.png b/testsuite/gsk/compare/scale-textures-negative.png
deleted file mode 100644 (file)
index 8624e6c..0000000
Binary files a/testsuite/gsk/compare/scale-textures-negative.png and /dev/null differ
index 1a20fe822307b60b1990fe4f154762d4c5903d3a..e6901e5ef941cf3b036d0c932a43ec863b148d37 100644 (file)
@@ -69,7 +69,7 @@ compare_render_tests = [
   'outset_shadow_rounded_top',
   'outset_shadow_simple',
   'scaled-cairo',
-  'scale-textures-negative',
+  'scale-textures-negative-ngl',
   'scale-up-down',
   'shadow-in-opacity',
   'texture-url',